package cn.jhz.learn.blog.dao.blogger;

import cn.jhz.learn.blog.po.blogger.BlogBloggerSubscribe;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlogBloggerSubscribeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogBloggerSubscribe record);

    int insertSelective(BlogBloggerSubscribe record);

    BlogBloggerSubscribe selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogBloggerSubscribe record);

    int updateByPrimaryKey(BlogBloggerSubscribe record);

    /*自定义*/
    BlogBloggerSubscribe selectByBlogIdAndSubscriberId(@Param("blog_id") Integer blogId, @Param("subscriber_id") Integer subscriberId);
}